#!/bin/bash

error_exit(){
#	echo "error#$1#$2"
	exit 1
}

command=$1
IFS='##'
cmds=($command)

count=0
for cmd in ${cmds[@]}
do
    eval ${cmd} 2>&1 || error_exit "${count}" "${cmd}"
    echo "success#${count}#${cmd}"
    count=`expr ${count} + 1`
done